package com.designpattern.singleton;

public class SingletonTest {
	
	public static void main(String[] args){
		Singleton singleton = Singleton.getInstance();
		singleton.print();
		
		Singleton2 singleton2 = Singleton2.getInstance();
		singleton2.print();
		
		Singleton3 singleton3 = Singleton3.INSTANCE;
		singleton3.print();
		
		Singleton4 singleton4 = Singleton4.getInstance();
		singleton4.print();
	}
	
	
}
